package cn.com.gensoft.app.core.config;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;

import java.util.UUID;

/**
 * /**
 * 通过uuid区分配置文件.
 * @author hlj
 */
public class LogbackConfiguration extends ClassicConverter {

    /**
     * 截取8位.
     */
    public static final String uuid = UUID.randomUUID().toString().substring(0,8);

    @Override
    public String convert(ILoggingEvent iLoggingEvent) {

        return uuid;
    }
}
